<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-11-17 11:10:14
 * @LastEditors: charles
 * @LastEditTime: 2021-11-17 21:42:56
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue3.0</title>
  <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
  <div id="app">
    {{user}}
  </div>
  <script>
    const ref = Vue.ref;
    const reactive = Vue.reactive;
    const app = Vue.createApp({
      setup(){
        const user = reactive({name:"terry",age:1})

        return {
          user
        }
      }
    })
    app.mount('#app')
  </script>
</body>
</html>